<?php
function raccourcirLien($lien)
{
include('../includes/config.php');
$ip = 'api';
$time = time();
$lien = mysql_real_escape_string(htmlentities($lien));
$password = mysql_real_escape_string(md5(''));
mysql_query("INSERT INTO liens_skyblog VALUES('', '$lien','$password', '$time', '$ip')");
$id=mysql_insert_id();
return $baseurl.'liens/?id='.$id;
}
?>